package com.levi.api.controller.product;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@RequestMapping("/product")
public interface ProductControllerApi {

    @GetMapping("/save")
    public Boolean save();

    @GetMapping("decutProduct")
    String decutProduct(@RequestParam Integer id,
                         @RequestParam Integer count);

    /**
     * 测试nacos-config配置中心
     * @return
     */
    @GetMapping("configInfo")
    public String configInfo();

    /**
     * 测试 gateway网关
     * @return
     */
    @GetMapping("gateway")
    public String gateway();

}
